package visitor;

/**
 * @Author: Doream
 * @Date: 2022/1/30 14:12
 */
// 具体访问者角色类
public class Owner implements Person {
    @Override
    public void feed(Cat cat) {
        System.out.println("主人喂食猫");
    }

    @Override
    public void feed(Dog dog) {
        System.out.println("主人喂食狗");
    }
}
